package com.ruoyi.paper_structures.controller;
import com.ruoyi.paper_structures.domain.Paper_structures;
import com.ruoyi.paper_structures.service.Paper_structuresService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class Paper_structuresController {
    @Autowired
    private Paper_structuresService paper_structuresService;

    // 获取第一个大纲数据
    @GetMapping("/api/paper_structures1")
    public List<Paper_structures> getOutline1() {
        return paper_structuresService.getPaper_structuresData1();
    }

    // 获取第二个大纲数据
    @GetMapping("/api/paper_structures2")
    public List<Paper_structures> getOutline2() {
        return paper_structuresService.getPaper_structuresData2();
    }
}

